package edu.zut.cs.software.module.billManagement.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import edu.zut.cs.software.teach.Base.domain.BaseEntity;
@Entity
@Table(name="T_BillManagement")
public class BillManagement extends BaseEntity<Long>{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = -2411978175041541798L;
	/**
	 * 商品名称
	 */
	@Column
	String name;
	/**
	 * 商品编号
	 */
	@Column
	Long id;
	/**
	 * 商品价格
	 */
	@Column
	int price;
	/**
	 * 商品库存
	 */
	@Column
	int inventory;
	/*
	 * 支付金额
	 */
	@Column
	int pay;
	/*
	 * 找回金额
	 */
	@Column
	int cash;
	
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public int getPrice() {
		return price;
	}

	public void setPrice(int price) {
		this.price = price;
	}

	public int getInventory() {
		return inventory;
	}

	public int getPay() {
		return pay;
	}

	public void setPay(int pay) {
		this.pay = pay;
	}

	public int getCash() {
		return cash;
	}

	public void setCash(int cash) {
		this.cash = cash;
	}

	public void setInventory(int inventory) {
		this.inventory = inventory;
	}
	public static long getSerialversionuid() {
		return serialVersionUID;
	
	}
}